package com.hellohoper.cloud.starter.zookeeper;

import lombok.Getter;
import lombok.Setter;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * Created by hk on 16/11/28.
 */
@ConfigurationProperties(prefix = "zookeeper")
@Getter
@Setter
public class ZookeeperProperties {

    @Value("${connectString:127.0.0.1:2181}")
    private String connectString;

    @Value("${namespace:namespace}")
    private String namespace;

    @Value("${sessionTimeout:60000}")
    private int sessionTimeout;

    @Value("${connectionTimeout:15000}")
    private int connectionTimeout;

    // 重试次数
    @Value("${retryNTimes:0x7fffffff}")
    private int retryNTimes;

    // 重试时间
    @Value("${retryTime:2000}")
    private int retryTime;

}
